package com.peace.hospital.mapper.publicn;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peace.hospital.entity.common.Staffinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 医院员工信息表 Mapper 接口
 * </p>
 *
 * @author xie
 * @since 2019-11-13
 */
@Mapper
public interface StaffinfoMapper extends BaseMapper<Staffinfo> {

//    根据员工id查询员工姓名
    @Select("select staname from hospital_public.staffinfo where staid=#{staid}")
    public Staffinfo findById(int staid);

}
